package com.delu.service.impl;

import com.delu.entity.RoundImg;


import com.delu.mapper.RoundImgMapper;
import com.delu.service.RoundImgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;

@Service
public class RoundImgServiceimpl implements RoundImgService {

    @Resource
    private RoundImgMapper roundImgMapper;

    @Override
    public List<RoundImg> roundImgList() {


        List<RoundImg> roundImgs = roundImgMapper.selectList(null);


        return roundImgs;
    }

    @Override
    public Integer addRoundImg(RoundImg roundImg) {

        int insert = roundImgMapper.insert(roundImg);

        return insert;
    }

    @Override
    public RoundImg selectId(Integer roundimageId) {
        RoundImg roundImg = roundImgMapper.selectById(roundimageId);
        return roundImg;
    }

    @Override
    public Integer deleteId(Integer roundimageId) {

        int i = roundImgMapper.deleteById(roundimageId);

        return i;
    }
}
